home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Tele / C / Calypso Folder / Connection Files / Simplest Calypso CCL < prev   
Encoding:
Text File  |  1992-09-29  |  903 b   |  31 lines  |  [TEXT/GEOL]

  1. ! Simplest CCL for use with Calypso.
  2. ! Just sets up and opens a connection with a CTBTool.  Works best
  3. ! with the Apple Modem Tool, MacPad or other tool which actually makes
  4. ! a connection (e.g. not Serial Tool).
  5. -LABEL 0
  6. -First, tell the CCL we're using a tool
  7. CTBTool 56 55 0 "~TOOL" 
  8. CTBOpen 2          ! Open the connection, if successful, jump to 2
  9. !
  10. Alert 90 Attempt to open a connection using the tool ~TOOL has failed.  Press OK or Cancel to Cancel
  11. Jump 90  ! FAILURE TO OPEN CONNECTION
  12. !
  13. ! Success!
  14. -LABEL 2
  15. ! The modem connection has been established.
  16. ! Put any host specific connection commands here (e.g. user name, password...).
  17. ! See other CCLs for examples of how to send data (using XMIT), set up incoming 
  18. ! strings to look for (using MatchStr), and wait for those strings (using Wait)
  19. Exit 0
  20. !
  21. !  Cancel to here:
  22. -LABEL 90
  23. Exit -1
  24. !
  25. !
  26. ! DISCONNECT CODE
  27. *-LABEL 0
  28. *CTBClose
  29. *Exit 0
  30. ###
  31.